#include <stdio.h>
//练习逻辑运算符 记住优先级
int main() {
    int year;
    while(scanf("%d",&year))
    {
        if(year%4==0&&year%100!=0 || year%400==0)
        {
            printf("%dyear is leap year\n",year);
        } else{
            printf("%dyear is not leap year\n",year);
        }
    }
    return 0;
}
